var animal = [
	'cat',
	{
		name:'王娇',
		age: 18,
		hobby:['敲代码','化妆','购物']
	},{
		name: '胡俊逸',
		age: 18,
		hobby:['看书','逛街','看电影']
	},
	{
		name:'王锴丰',
		age: 28,
		hobby:['唱歌','跳舞','Rap']
	}
]

// concat === start
//var newAnimal = [].concat(animal);
// console.log(JSON.stringify(newAnimal));
//console.log(newAnimal[1] === animal[1]);
// concat === end

//面试：slice 截取、splice 删除、或替换、或插入、split分割
//面试：slice、substr、substring区别 ？
// slice === start
// var sliceAnimal = animal.slice()
// console.log(JSON.stringify(sliceAnimal));
// console.log(JSON.stringify(sliceAnimal));
// console.log(animal[1] === sliceAnimal[1]);